package memento.white_box;

/**
 * @Author: Doream
 * @Date: 2022/1/30 14:49
 */
public class RoleStateMemento {
    private int hp;  // 生命值
    private int atk; // 攻击力
    private int def; // 防御力


    public RoleStateMemento(int hp, int atk, int def) {
        this.hp = hp;
        this.atk = atk;
        this.def = def;
    }

    public RoleStateMemento() {
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getAtk() {
        return atk;
    }

    public void setAtk(int atk) {
        this.atk = atk;
    }

    public int getDef() {
        return def;
    }

    public void setDef(int def) {
        this.def = def;
    }
}
